package com.ruoyi.system.service.backend.impl;

import com.ruoyi.system.controller.CxBase;
import com.ruoyi.system.domain.SafetyPublicityInfo;
import com.ruoyi.system.domain.StudentInfo;
import com.ruoyi.system.domain.backend.CaseBackDeployment;
import com.ruoyi.system.domain.backend.UserInfoReturn;
import com.ruoyi.system.domain.front.DicData;
import com.ruoyi.system.domain.front.PublicitySelect;
import com.ruoyi.system.domain.front.StudentInfoFront;
import com.ruoyi.system.domain.front.UpdatePhone;
import com.ruoyi.system.mapper.StudentInfoMapper;
import com.ruoyi.system.mapper.backend.StudentBackMapper;
import com.ruoyi.system.mapper.front.StudentFrontMapper;
import com.ruoyi.system.service.backend.IStudentBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class StudentBackServiceImpl extends CxBase implements IStudentBackService {
    @Autowired
    private StudentBackMapper studentBackMapper;
    /**
     * 读取处理人员
     *
     * @param caseBackDeployment 查询案件号
     * @return 处理人员列表
     */
    public UserInfoReturn selectCPinfo(CaseBackDeployment caseBackDeployment){
        UserInfoReturn userInfoReturns = new UserInfoReturn();
        caseBackDeployment.setCaseCollege(0);
        userInfoReturns.setPoliceInfo(studentBackMapper.selectCPinfo(caseBackDeployment));
        caseBackDeployment.setCaseCollege(1);
        userInfoReturns.setCollegeInfo(studentBackMapper.selectCPinfo(caseBackDeployment));
        return userInfoReturns;
    }
}
